package Lesson;

import java.util.Scanner;

public class Demo2Method {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //录入一个整数
        System.out.println("请输入一个整数：");
        int num = sc.nextInt();
        //判断奇偶
        method(num);
    }

    public static void method(int num){
        if(num % 2==0){
            System.out.println("偶数");
        }else{
            System.out.println("奇数");
        }
    }
}
